import { Game } from '@/type'
import StorageState from '@/utils/storageState'

// 初始游戏数据
const initialGames: Game[] = []

// 创建默认值对象
const defaultValue = {
  games: initialGames,
}

// 创建游戏存储实例
export const gameStore = new StorageState('games', defaultValue)
